package com.zh.goods.dao;


import com.zh.goods.domain.GoodsSublistDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 商品子表
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2019-03-04 16:00:59
 */
@Mapper
public interface GoodsSublistDao {

	GoodsSublistDO get(String id);
	
	List<GoodsSublistDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(GoodsSublistDO scGoodsSublist);
	
	int update(GoodsSublistDO scGoodsSublist);
	
	int remove(String id);
	
	int batchRemove(String[] ids);

	int removeByGoodsId(String id);

	int batchRemoveByGoodsId(String[] ids);

	List<GoodsSublistDO> listAll(String id);

	int countAdd(String id);

	int getStock(String goodsId);

	List<GoodsSublistDO> getColour(String goodsId);

	List<GoodsSublistDO> getSpecification(String goodsId);

	List<GoodsSublistDO> getDataByGoodsId(String goodsId);
}
